package com.inspur.edp.das.commonmodel.util;

public class HandleAssemblyNameUtil {
	public static String convertToJavaPackageName(String assemblyName) {
		String[] list = assemblyName.split("\\.");
		String result = "";

		for (int i = 0; i < list.length; i++) {
			String lowerCase = list[i].toLowerCase();
			if (i == 0) {
				if (lowerCase.equals("inspur")) {
					result = result.concat("com.inspur");
					continue;
				} else {
					result = result.concat(lowerCase);
					continue;
				}
			}
			result = result.concat(".");
			result = result.concat(lowerCase);
		}
		return result;
	}
}
